#!/usr/bin/env python

import sys
import os

def usage():
    print 'usage: ./erltools.py function [args...]'
    print ''
    print 'where function includes:'
    print '    startapp APP_NAME    create a folder layout named APP_NAME'

if __name__ == '__main__':
    try:
        if sys.argv[1] == 'startapp':
            app_name = sys.argv[2]
            os.mkdir(app_name)
            os.system('cp -R ../support/* ' + app_name)
        else:
            usage()
    except:
        usage()

    
    

